/**
 * Title: IUploadListener.java
 * Description:
 * Copyright: Copyright (c) 2008
 * Company:深圳彩讯科技有限公司
 * Author 罗旭东 (hi@luoxudong.com)
 * Date 2013-9-24 下午2:16:10
 * Version 1.0
 */
package com.luoxudong.phonenumber.service.net.http.filetransfer.interfaces;


/** 
 * ClassName: IUploadListener
 * Description:上传监听
 * Create by 罗旭东
 * Date 2013-9-24 下午2:16:10
 */
public interface IUploadListener {
	/**
	 * 开始上传
	 * @param uploadId
	 */
	public void onStartUpload(int uploadId);
	
	/**
	 * 上传成功
	 */
	public void onUploadSuccess(int uploadId);
	
	/**
	 * 上传进度
	 * @param uploadId
	 * @param uploadedSize
	 * @param totalSize
	 */
	public void onUploading(int uploadId, long uploadedSize, long totalSize);
	
	/**
	 * 上传失败
	 * @param msg 错误信息
	 */
	public void onUploadFail(int uploadId, int errorCode, String msg);
	
	/**
	 * 暂停上传
	 * @param uploadId
	 */
	public void onUploadPause(int uploadId);
}
